﻿//修改课程
var pdId;
var fnbtnCourse = function () {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    pdId = record.getData(const_entityID);
    document.getElementById("EditUIWindow").src = "../../TR/EditCoursePlan.aspx?acid=" + pdId;
    YAHOO.example.container.dialog1.show();
}
if (typeof($) != "undefined") {
    $(document).ready(function () {
        try {

            var varStr = $("form").attr("action");
            var arr = varStr.split('&');
            var arr2 = new Array();
            for (var i = 1; i < arr.length; i++) {
                arr2.push(arr[i]);
            }
            var varCheck = arr2[0].substring(7, arr2[0].length);
            if (varCheck == "check") {
                $("#btnStudentName").hide();
                $("#PlanStartTime").attr("disabled", "disabled");
                $("#PlanEndTime").attr("disabled", "disabled");
                $("#CourseContent").attr("disabled", "disabled");
                $("#CoursePrepare").attr("disabled", "disabled");
                $("#InfactEndTime").attr("disabled", "disabled");
                $("#InfactStartTime").attr("disabled", "disabled");
                $("#PlanNum").attr("disabled", "disabled");
                $("#City").attr("disabled", "disabled");
                $("#ResultNum").attr("disabled", "disabled");
               
            }
        } catch (Error) { }
    })
}

